/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_countermandReqlog")
//@NamedQueries({@NamedQuery(name = "TcountermandReqlog.findAll", query = "SELECT t FROM TcountermandReqlog t"), @NamedQuery(name = "TcountermandReqlog.findById", query = "SELECT t FROM TcountermandReqlog t WHERE t.id = :id"), @NamedQuery(name = "TcountermandReqlog.findByServiceCode", query = "SELECT t FROM TcountermandReqlog t WHERE t.serviceCode = :serviceCode"), @NamedQuery(name = "TcountermandReqlog.findByMerchantCode", query = "SELECT t FROM TcountermandReqlog t WHERE t.merchantCode = :merchantCode"), @NamedQuery(name = "TcountermandReqlog.findByMdn", query = "SELECT t FROM TcountermandReqlog t WHERE t.mdn = :mdn"), @NamedQuery(name = "TcountermandReqlog.findByProdectCode", query = "SELECT t FROM TcountermandReqlog t WHERE t.prodectCode = :prodectCode"), @NamedQuery(name = "TcountermandReqlog.findByReqtime", query = "SELECT t FROM TcountermandReqlog t WHERE t.reqtime = :reqtime")})
public class TcountermandReqlog implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "serviceCode")
    private String serviceCode;
    @Column(name = "merchantCode")
    private String merchantCode;
    @Column(name = "mdn")
    private String mdn;
    @Column(name = "prodectCode")
    private String prodectCode;
    @Basic(optional = false)
    @Column(name = "reqtime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date reqtime;

    public TcountermandReqlog() {
    }

    public TcountermandReqlog(Integer id) {
        this.id = id;
    }

    public TcountermandReqlog(Integer id, Date reqtime) {
        this.id = id;
        this.reqtime = reqtime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getServiceCode() {
        return serviceCode;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    public String getMdn() {
        return mdn;
    }

    public void setMdn(String mdn) {
        this.mdn = mdn;
    }

    public String getProdectCode() {
        return prodectCode;
    }

    public void setProdectCode(String prodectCode) {
        this.prodectCode = prodectCode;
    }

    public Date getReqtime() {
        return reqtime;
    }

    public void setReqtime(Date reqtime) {
        this.reqtime = reqtime;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TcountermandReqlog)) {
            return false;
        }
        TcountermandReqlog other = (TcountermandReqlog) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TcountermandReqlog[id=" + id + "]";
    }

}
